package lab02.test35;

public class Salesman extends Employee {
    private double num ;//销售数量
    private double salary = 2000;//底工资

    @Override
    public String toString() {
        return super.toString();
    }

    @Override
    public double computeSalary() {
        return salary+num*35;//15是每件的提成
    }

    Salesman() {
        super();
    }

    Salesman(String name, String no,double num) {
        super(name, no);
        this.num = num;
    }

    public double getNum() {
        return num;
    }

    public void setNum(double num) {
        this.num = num;
    }
}
